package com.stone.back.dish.entity;

import java.util.Date;

import com.stone.back.user.entity.BfUser;
import com.stone.common.util.DateUtil;

/**
 * 套餐
 * @author Stone P
 */
public class BfCombo implements java.io.Serializable {

	// Fields

	private Integer comboid;
	private String combochname;
	private String comboenname;
	private Float price;
	private String photo;
	private String nutritioninfo;
	private Integer hot;
	private Integer status = 1;
	private Date createdate;
	private Integer createuserid;
	private BfUser createuser;

	// Constructors

	/** default constructor */
	public BfCombo() {
	}

	/** minimal constructor */
	public BfCombo(String combochname, String comboenname, Float price, String photo, Date createdate, Integer createuserid, Integer status) {
		this.combochname = combochname;
		this.comboenname = comboenname;
		this.price = price;
		this.photo = photo;
		this.status = status;
		this.createdate = createdate;
		this.createuserid = createuserid;
	}

	/** full constructor */
	public BfCombo(String combochname, String comboenname, Float price, String photo, String nutritioninfo, Integer hot, Integer status, 
			Date createdate, Integer createuserid) {
		this.combochname = combochname;
		this.comboenname = comboenname;
		this.price = price;
		this.photo = photo;
		this.nutritioninfo = nutritioninfo;
		this.hot = hot;
		this.status = status;
		this.createdate = createdate;
		this.createuserid = createuserid;
	}

	// Property accessors

	public Integer getComboid() {
		return this.comboid;
	}

	public void setComboid(Integer comboid) {
		this.comboid = comboid;
	}

	public String getCombochname() {
		return combochname;
	}

	public void setCombochname(String combochname) {
		this.combochname = combochname;
	}

	public String getComboenname() {
		return comboenname;
	}

	public void setComboenname(String comboenname) {
		this.comboenname = comboenname;
	}

	public Float getPrice() {
		return this.price;
	}

	public void setPrice(Float price) {
		this.price = price;
	}

	public String getPhoto() {
		return photo;
	}

	public void setPhoto(String photo) {
		this.photo = photo;
	}

	public String getNutritioninfo() {
		return this.nutritioninfo;
	}

	public void setNutritioninfo(String nutritioninfo) {
		this.nutritioninfo = nutritioninfo;
	}

	public Integer getHot() {
		return hot;
	}

	public void setHot(Integer hot) {
		this.hot = hot;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getCreatedate() {
		return this.createdate;
	}

	public void setCreatedate(Date createdate) {
		this.createdate = createdate;
	}
	
    public String getCreatedateStr() {
    	if(null == this.createdate) {
    		return "";
    	} else {
    		return DateUtil.dateFormatStr(DateUtil.DATE_FORMAT, this.createdate);
    	}
    }

	public Integer getCreateuserid() {
		return this.createuserid;
	}

	public void setCreateuserid(Integer createuserid) {
		this.createuserid = createuserid;
	}

	public BfUser getCreateuser() {
		return createuser;
	}

	public void setCreateuser(BfUser createuser) {
		this.createuser = createuser;
	}

}